package com.xzit.rcpyxt.dto;

import com.xzit.rcpyxt.entity.Course;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;
import java.util.List;

public class SaveAttendanceDto {

    @ApiModelProperty(hidden = true)
    private int id;
    @ApiModelProperty(value = "课程id", required = true)
    private Integer classId;
    @ApiModelProperty(value = "考勤名字", required = true)
    private String name;
    @ApiModelProperty(value = "已到人数", required = true)
    private int arrived;
    @ApiModelProperty(value = "请假人数", required = true)
    private int absence;
    @ApiModelProperty(value = "缺勤人数", required = true)
    private int absenteeism;
    @ApiModelProperty(value = "备注", required = false)
    private String remark;
    @ApiModelProperty(value = "老师id", required = true)
    private int teacherId;
    @ApiModelProperty(value = "学生信息")
    private List<StudentAttendanceRequest.StudentAttendanceInfo> studentAttendanceInfoList;

    public class StudentAttendanceInfo {

        @ApiModelProperty(value = "学生id", required = true)
        private int studentId;
        @ApiModelProperty(value = "学生姓名", required = false)
        private String studentName;
        @ApiModelProperty(value = "考勤状态0已到1请假2缺勤，", required = true)
        private int attendanceStatus;

        public int getStudentId() {
            return studentId;
        }

        public void setStudentId(int studentId) {
            this.studentId = studentId;
        }

        public String getStudentName() {
            return studentName;
        }

        public void setStudentName(String studentName) {
            this.studentName = studentName;
        }

        public int getAttendanceStatus() {
            return attendanceStatus;
        }

        public void setAttendanceStatus(int attendanceStatus) {
            this.attendanceStatus = attendanceStatus;
        }
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Integer getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {
        this.classId = classId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getArrived() {
        return arrived;
    }

    public void setArrived(int arrived) {
        this.arrived = arrived;
    }

    public int getAbsence() {
        return absence;
    }

    public void setAbsence(int absence) {
        this.absence = absence;
    }

    public int getAbsenteeism() {
        return absenteeism;
    }

    public void setAbsenteeism(int absenteeism) {
        this.absenteeism = absenteeism;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public int getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(int teacherId) {
        this.teacherId = teacherId;
    }

    public List<StudentAttendanceRequest.StudentAttendanceInfo> getStudentAttendanceInfoList() {
        return studentAttendanceInfoList;
    }

    public void setStudentAttendanceInfoList(List<StudentAttendanceRequest.StudentAttendanceInfo> studentAttendanceInfoList) {
        this.studentAttendanceInfoList = studentAttendanceInfoList;
    }
}